<template>
<h1>事件绑定指令</h1>
  <button v-on:click="f">按钮</button>
  <button @click="f">按钮</button>
  <hr>
  <input type="text" placeholder="请输入想搜素的商品" @keydown.enter="f2">
</template>



<script setup>
const f = () => {
  console.log("事件绑定指令")
}
const f2 = () => {
  console.log("搜索中...")
}
</script>


<style scoped>

</style>